
package vinterprojekt.entity;

/**
 * Book klassen beskriver en bog med passende attributter.
 * @author Jacob og Nicholas
 */
public class Book extends Material
{
    private String author;

    public Book(String title, String yearOfPublication, String edition, String publisher, String ISBN, String ISBNSuffix, String remark, String author, boolean avail)
    {
        super(title, yearOfPublication, edition, publisher, ISBN, ISBNSuffix, remark, avail);
        this.author = author;
    }

    /**
     *
     * @return Attributten "author"
     */
    public String getAuthor()
    {
        return author;
    }

    /**
     *
     * @return String der kort beskriver en Book
     */
    @Override public String toString()
    {
        return author + ":" + getTitle() + "\n" + getPublisher() + ", edition " + getEdition();
    }
}
